package com.zhss.demo.register.client;

import com.zhss.demo.register.client.ClientCachedServiceRegistry.RecentlyChangedServiceInstance;

import java.util.LinkedList;

/**
 * 增量数据表的封装类
 */
public class DeltaRegister {
    private LinkedList<RecentlyChangedServiceInstance> recentlyChangeServiceInstances;
    private Long registerInstancesTotal;

    public LinkedList<RecentlyChangedServiceInstance> getRecentlyChangeServiceInstances() {
        return recentlyChangeServiceInstances;
    }

    public void setRecentlyChangeServiceInstances(LinkedList<RecentlyChangedServiceInstance> recentlyChangeServiceInstances) {
        this.recentlyChangeServiceInstances = recentlyChangeServiceInstances;
    }

    public Long getRegisterInstancesTotal() {
        return registerInstancesTotal;
    }

    public void setRegisterInstancesTotal(Long registerInstancesTotal) {
        this.registerInstancesTotal = registerInstancesTotal;
    }

    public DeltaRegister(LinkedList<RecentlyChangedServiceInstance> recentlyChangeServiceInstances, Long registerInstancesTotal) {
        this.recentlyChangeServiceInstances = recentlyChangeServiceInstances;
        this.registerInstancesTotal = registerInstancesTotal;
    }
}
